class LogNumber(object):
    def __init__(self):
        self.__number = 0

    def next(self):
        self.__number += 1
        return self.__number

    def current(self):
        return self.__number

import unittest
class TestLogNumber(unittest.TestCase):
    def test(self):
        number = LogNumber()
        self.assertEqual(1, number.next())
        self.assertEqual(2, number.next())
        self.assertEqual(3, number.next())
        self.assertEqual(4, number.next())
        self.assertEqual(5, number.next())
        self.assertEqual(5, number.current())
        self.assertEqual(5, number.current())
        self.assertEqual(5, number.current())
        self.assertEqual(5, number.current())
        self.assertEqual(5, number.current())

if __name__ == "__main__":
    suite = unittest.TestSuite([
        unittest.TestLoader().loadTestsFromTestCase(TestLogNumber), 
    ])
    unittest.TextTestRunner(verbosity=2).run(suite)
